import { isEmpty } from '@/utils/validate'
interface typeOption {
  label: string;
  value: string | number;
  tagStatus?: string;
}
export function useFilterHook() {
  function filterOption(
    val: string | undefined | number,
    option: typeOption[]
  ): undefined | typeOption {

    if (isEmpty(val) || isEmpty(option)) return;
    return option.find((v: any) => v.value == val);
  }

  return {
    filterOption,
  };
}
